#define _CRT_SECURE_NO_WARNINGS 1
#include"Stack_blog.h"

void test_01(void)
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPush(&s, 6);
	StackPush(&s, 7);

	while (!IsStackEmpty(&s))
	{
		printf("%d  ", StackTop(&s));
		StackPop(&s);
	}
	StackDestory(&s);
}

void test_02(void)
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	QueuePush(&q, 6);
	QueuePush(&q, 7);
	QueuePush(&q, 8);

	while (!IsQueueEmpty(&q))
	{
		printf("%d  ", QueTop(&q));
		QueuePop(&q);
	}
	QueDestory(&q);
}

int main()
{
	//test_01();
	//test_02();
	char a[] = "()";

	if (isValid(a))
		printf("shi");
	return 0;
}